<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>老师上门</title>
	<link rel="stylesheet" href="/lssm/Public/mobile/css/public.css">
	<link rel="stylesheet" href="/lssm/Public/mobile/css/index.css">
	<script type="text/javascript" src="/lssm/Public/mobile/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="/lssm/Public/mobile/js/touchslider.js"></script>
	<script type="text/javascript" src="/lssm/Public/mobile/js/index.js"></script>

<script type="text/javascript">
// function goPAGE() {
//     if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
//         }else {window.location.href="http://www.laoshism.com";}
// }
// goPAGE();
</script>

	<style type="text/css">
		.notuser_btn{
		    display: block;
		    float: right;
		    position: absolute;
		    background-position: 0 5;
		    height: 50px;
		    font-size: 16px;
		    line-height: 45px;
		    color: #707070;
		    text-decoration: none;
		    right: 5px;

		}
	</style>
</head>
<body>
	<div id="page" class="showpage">
		<header id="header" style="padding: 5px 0;">
			<a href="javascript:;" class="top_bt"><?php echo ($city); ?><span style="border-left: 10px solid transparent;border-right: 10px solid transparent;border-top: 15px solid #fff;position: relative;top: 20px;left: -55px;"></span></a>

		<?php if (isset($_SESSION['phone']) && $_SESSION['is_who'] == 'laoshi') { ?>
			<a href="<?php echo U('mobile/info/is_home',array('newcity'=>$city));?>" style="position: absolute;color: #fff;right: 5;top: 15px;right: 5px;text-decoration:underline;"><?php echo ($name); ?></a>
		<?php }elseif (isset($_SESSION['phone']) && $_SESSION['is_who'] == 'jiazhang') { ?>
			<a href="<?php echo U('mobile/info/is_home',array('newcity'=>$city));?>" style="position: absolute;color: #fff;right: 5;top: 15px;right: 5px;text-decoration:underline;"><?php echo ($name); ?></a>
		<?php }else { ?>
			<a href="<?php echo U('mobile/user/login',array('newcity'=>$city));?>" style="position: absolute;color: #fff;right: 5;top: 15px;right: 5px;">登录</a>
			<a href="<?php echo U('mobile/user/zhuce',array('newcity'=>$city));?>" style="position: absolute;color: #fff;right: 5;top: 15px;right: 50px;">注册</a>
		<?php } ?>

			<img src="/lssm/Public/mobile/images/logo1.png" alt="" style="height: 45px;">
			<span href="javascript:void(0)" class="logo">老师上门</span>
		 </header>


		<!-- 幻灯片s --> 
        <div class="banner">
            <div id="slider" class="slider">
                <ul id="sliderlist" class="sliderlist">
                	<li><span><a href="jacascript:;"><img src="/lssm/Public/mobile/images/sy01.jpg" class="slidesjs-slide" title="" width="100%"/></a></span></li>
                	<li><span><a href="jacascript:;"><img src="/lssm/Public/mobile/images/sy02.jpg" class="slidesjs-slide" title="" width="100%"/></a></span></li>
                	<li><span><a href="jacascript:;"><img src="/lssm/Public/mobile/images/sy03.jpg" class="slidesjs-slide" title="" width="100%"/></a></span></li>
                	<li><span><a href="jacascript:;"><img src="/lssm/Public/mobile/images/sy04.jpg" class="slidesjs-slide" title="" width="100%"/></a></span></li>                
                	</ul>
                <div id="pagenavi">
                    <a href="javascript:;" class="active"></a>
                    <a class="" href="javascript:;"></a>
                    <a class="" href="javascript:;"></a>
                    <a class="" href="javascript:;"></a>
                </div>
            </div>
        </div>
        <script type="text/javascript">
        var active=0,
        as=document.getElementById('pagenavi').getElementsByTagName('a');
      
        for(var i=0;i<as.length;i++){
            (function(){
                var j=i;
                as[i].onclick=function(){
                t2.slide(j);
                return false;
            }
            })();
        }
        var t2=new TouchSlider({id:'sliderlist', speed:600, timeout:6000, before:function(index){
            as[active].className='';
            active=index;
            as[active].className='active';
        }});
        </script> 
        <!-- 幻灯片e --> 



    <div id="fake-search" class="index_search">
  		<div class="index_search_mid">
  			<span><img src="/lssm/Public/mobile/images/icosousuo.png"></span>
    		<input type="text" id="search_text" class="search_text" placeholder="输入老师姓名或老师ID号">
  		</div>
	</div>

	<div class="entry-list clearfix">
		<nav>
			<ul>
				<li>
					<a href="<?php echo U('mobile/classes/index',array('newcity'=>$city,'wh'=>'文化课程'));?>" style="width: 50%;">
						<img alt="文化课程" src="/lssm/Public/mobile/images/gaozhong.png">
						<span>文化语言</span>
					</a>
				</li>
				
				<li>
					<a href="<?php echo U('mobile/classes/index',array('newcity'=>$city,'wh'=>'艺术课程'));?>" style="width: 50%;">
						<img alt="艺术课程" src="/lssm/Public/mobile/images/yishu.png">
						<span>艺术兴趣</span>
					</a>
				</li>
				<!-- <li>
					<a href="<?php echo U('mobile/classes/index',array('newcity'=>$city,'grade'=>'小学'));?>">
						<img alt="小学辅导" src="/lssm/Public/mobile/images/xiaoxue.png">
						<span>小学辅导</span>
					</a>
				</li>
				<li>
					<a href="<?php echo U('mobile/classes/index',array('newcity'=>$city,'grade'=>'艺术兴趣'));?>">
						<img alt="艺术兴趣" src="/lssm/Public/mobile/images/yishu.png">
						<span>艺术兴趣</span>
					</a>
				</li> -->
			</ul>
		</nav>
	</div>

	<div class="index_floor_lou">
	    <div class="floor_body ">
	        <h2>
	            <em></em>艺术兴趣<div class="geng"><a href="<?php echo U('mobile/classes/index',array('wh'=>'艺术兴趣','newcity'=>$city));?>" style="font-weight:bold;">更多</a></div>
	         </h2>
	    </div>

	    <div class="floor_body2"> 
		   <div id="J_ItemList">
		   <?php foreach ($gz as $g) { ?>
			   <ul class="product single_item info" id="more_element_1">
			     <li> <a href="<?php echo U('mobile/index/ls_one',array('id'=>$g['id'],'newcity'=>$city));?>" title="<?php echo mb_substr($g['sfz_name'], 0,1,'UTF-8').'老师' ?>"> 
			       <div class="index_pro"> 
			        <div class="products_kuang"><img src="/lssm<?php echo ($g["face"]); ?>"/></div> 
			        <div class="goods_name"><?php echo mb_substr($g['sfz_name'], 0,1,'UTF-8').'老师' ?><span><?php echo ($g["grades"]); echo ($g["subject"]); ?></span></div> 
			        <div class="tp1 f"><span><b><?php echo ($g["jiaoling"]); ?>年教龄</b></span><span><strong><?php echo floatval($g['price']) ?></strong>元/课时</span></div>
			       </div></a> 
			    </li> 
			   </ul>
		   <?php } ?> 
		   </div> 
  		</div>
	</div>


	<div class="index_floor_lou">
	    <div class="floor_body ">
	        <h2>
	            <em></em>文化语言<div class="geng"><a href="<?php echo U('mobile/classes/index',array('wh'=>'文化语言','newcity'=>$city));?>" style="font-weight:bold;">更多</a></div>
	         </h2>
	    </div>
	    <div class="floor_body2"> 
		   <div id="J_ItemList">
		   <?php foreach ($cz as $g) { ?>
			   <ul class="product single_item info" id="more_element_1">
			     <li> <a href="<?php echo U('mobile/index/ls_one',array('id'=>$g['id'],'newcity'=>$city));?>" title="<?php echo mb_substr($g['sfz_name'], 0,1,'UTF-8').'老师' ?>"> 
			       <div class="index_pro"> 
			        <div class="products_kuang"><img src="/lssm<?php echo ($g["face"]); ?>"/></div> 
			        <div class="goods_name"><?php echo mb_substr($g['sfz_name'], 0,1,'UTF-8').'老师' ?><span><?php echo ($g["grades"]); echo ($g["subject"]); ?></span></div> 
			        <div class="tp1 f"><span><b><?php echo ($g["jiaoling"]); ?>年教龄</b></span><span><strong><?php echo floatval($g['price']) ?></strong>元/课时</span></div>
			       </div></a> 
			    </li> 
			   </ul>
		   <?php } ?> 
	   </div> 
  		</div>
	</div>

	<!-- 版权所有 -->
	<div id="footer" class="app-hide"><p class="copy-right" style="line-height: 20px;">Copyright © 2015-2019 老师上门版权所有<br>网站备案号：粤ICP备16129133号</p></div>

	<!-- 底部导航 -->
		<div class="v_nav">
			<div class="vf_nav">
				<ul>
					<li> <a href="<?php echo U('mobile/index/index',array('newcity'=>$city));?>"><i class="vf_1"></i>
					    <span>首页</span></a>
					</li>
					<li><a href="<?php echo U('mobile/classes/index',array('newcity'=>$city));?>"><i class="vf_2"></i>
					    <span>课程列表</span></a>
					</li>
					<li><a href="tel:18902491208"><i class="vf_3"></i>
					    <span>电话咨询</span></a>
					</li>
					<li><a href="<?php echo U('mobile/index/zhao_kec',array('newcity'=>$city));?>"><i class="vf_4"></i>
					    <span>快速预约</span></a>
					</li>

					<li><a href="<?php echo U('mobile/info/is_home',array('newcity'=>$city));?>"><i class="vf_5"></i>
					    <span>个人中心</span></a>
					</li>
				</ul>
			</div>
		</div>

	</div>





	<!-- 城市切换 -->
	<div class="cityqie">
		<div id="page_nav_bar" class="nav-bar">
			<a id="page_goBack" href="" class="icon icon-angle-left">&nbsp;</a>
			<h1>切换城市</h1>
		</div>
		<div class="citylist-more" id="allcity" style="display: block;">
	        <p class="title">目前开放的城市</p>
	        <ul>
	        <?php foreach ($citys as $c) { ?>
	        	<li><a href="<?php echo U('mobile/index/index',array('newcity'=>$c['city_name']));?>" class="ciT"><?php echo ($c['city_name']); ?></a></li> 
	        <?php } ?>
	        </ul>
	    </div>
	</div>
	
	<!-- 分类搜索 -->
	<div id="search_hide" class="search_hide" style="position: fixed; top: 0px; width: 100%; z-index: 999; "> 
   <h2> <span class="close"><img src="/lssm/Public/mobile/images/close.png" /></span>关键词搜索</h2> 
   <div id="mallSearch" class="search_mid"> 
    <div class="searchdotm"> 
     <form class="mallSearch-form" method="get" name="searchForm" id="searchForm" action="<?php echo U('mobile/classes/index',array('newcity'=>$city));?>" > <!-- onsubmit="return checkSearchForm()" -->
      <!-- <input type="hidden" name="type" id="searchtype" value="" /> --> 
      <div class="mallSearch-input"> 
       <div id="s-combobox-135"> 
        <input class="s-combobox-input" name="keyword" id="keyword" autocomplete="off" value="" placeholder="输入老师姓名或老师ID号" onfocus="if(this.value=='输入老师姓名或老师ID号'){this.value='';}else{this.value=this.value;}" onblur="if(this.value=='')this.value='输入老师姓名或老师ID号'" type="text" /> 
       </div> 
       <input type="submit" value="" class="button" /> 
      </div> 
     </form> 
    </div> 
   </div> 
  </div>


</body>
</html>